class ArticleService {
  public postType(postType: any) {
    if (postType === 'post') document.body.classList.add('post-single')
    else if (postType === 'video') document.body.classList.add('single-format-video')
    else if (postType === 'image') document.body.classList.add('single-format-gallery')
  }

  public RemovePostBodyClassList(){
    if (document.body.classList.contains('post-single')){
      document.body.classList.remove('post-single')
    }else if (document.body.classList.contains('single-format-video')){
      document.body.classList.remove('single-format-video')
    }else if(document.body.classList.contains('single-format-gallery')){
      document.body.classList.remove('single-format-gallery')
    }
  }
}

export const articleService: ArticleService = new ArticleService()
